﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class SimulationWrapper
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class SimulationWrapper
   ">
    <meta name="generator" content="docfx 2.52.0.0">
    
    <link rel="shortcut icon" href="../api/images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> 
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <script type="text/javascript" async="" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
    
    
    
  </head>  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../api/images/favicon.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="SpiceSharp.Components.Common.SimulationWrapper">
  
  
  <h1 id="SpiceSharp_Components_Common_SimulationWrapper" data-uid="SpiceSharp.Components.Common.SimulationWrapper" class="text-break">Class SimulationWrapper
  </h1>
  <div class="markdown level0 summary"><p>A common wrapper for a simulation. It allows an extra layer of an <a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a>.
The wrapper can inject configurations, states, solved variables, etc.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">SimulationWrapper</span></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.ParallelComponents.ParallelSimulation.html">ParallelSimulation</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Subcircuits.SubcircuitSimulation.html">SubcircuitSimulation</a></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a></div>
    <div><a class="xref" href="SpiceSharp.Simulations.IStateful.html">IStateful</a></div>
    <div><a class="xref" href="SpiceSharp.Simulations.IBehavioral.html">IBehavioral</a></div>
    <div><a class="xref" href="SpiceSharp.ParameterSets.IParameterSetCollection.html">IParameterSetCollection</a></div>
    <div><a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a></div>
    <div><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="SpiceSharp.Components.Common.html">SpiceSharp.Components.Common</a></h6>
  <h6><strong>Assembly</strong>: SpiceSharp.dll</h6>
  <h5 id="SpiceSharp_Components_Common_SimulationWrapper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SimulationWrapper : ISimulation, IStateful, IBehavioral, IParameterSetCollection, IParameterSet, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  <a id="SpiceSharp_Components_Common_SimulationWrapper__ctor_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.#ctor*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper__ctor_SpiceSharp_Simulations_ISimulation_SpiceSharp_Behaviors_IBehaviorContainerCollection_SpiceSharp_General_ITypeSet_SpiceSharp_Simulations_ISimulationState__" data-uid="SpiceSharp.Components.Common.SimulationWrapper.#ctor(SpiceSharp.Simulations.ISimulation,SpiceSharp.Behaviors.IBehaviorContainerCollection,SpiceSharp.General.ITypeSet{SpiceSharp.Simulations.ISimulationState})">SimulationWrapper(ISimulation, IBehaviorContainerCollection, ITypeSet&lt;ISimulationState&gt;)</h4>
  <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="SpiceSharp.Components.Common.SimulationWrapper.html">SimulationWrapper</a> class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public SimulationWrapper(ISimulation parent, IBehaviorContainerCollection behaviors, ITypeSet&lt;ISimulationState&gt; states)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a></td>
        <td><span class="parametername">parent</span></td>
        <td><p>The parent.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Behaviors.IBehaviorContainerCollection.html">IBehaviorContainerCollection</a></td>
        <td><span class="parametername">behaviors</span></td>
        <td><p>The behaviors.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.General.ITypeSet-1.html">ITypeSet</a>&lt;<a class="xref" href="SpiceSharp.Simulations.ISimulationState.html">ISimulationState</a>&gt;</td>
        <td><span class="parametername">states</span></td>
        <td><p>The simulation states.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">parent</code>, <code data-dev-comment-type="paramref" class="paramref">behaviors</code> or <code data-dev-comment-type="paramref" class="paramref">states</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_Behaviors_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Behaviors*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_Behaviors" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Behaviors">Behaviors</h4>
  <div class="markdown level1 summary"><p>Gets all behavior types that are used by the class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IEnumerable&lt;Type&gt; Behaviors { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<span class="xref">System.Type</span>&gt;</td>
        <td><p>The behaviors.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_EntityBehaviors_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.EntityBehaviors*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_EntityBehaviors" data-uid="SpiceSharp.Components.Common.SimulationWrapper.EntityBehaviors">EntityBehaviors</h4>
  <div class="markdown level1 summary"><p>Gets the entity behaviors.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IBehaviorContainerCollection EntityBehaviors { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Behaviors.IBehaviorContainerCollection.html">IBehaviorContainerCollection</a></td>
        <td><p>The entity behaviors.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_LocalStates_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.LocalStates*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_LocalStates" data-uid="SpiceSharp.Components.Common.SimulationWrapper.LocalStates">LocalStates</h4>
  <div class="markdown level1 summary"><p>Gets the local states. These states are returned first!</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ITypeSet&lt;ISimulationState&gt; LocalStates { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.General.ITypeSet-1.html">ITypeSet</a>&lt;<a class="xref" href="SpiceSharp.Simulations.ISimulationState.html">ISimulationState</a>&gt;</td>
        <td><p>The local states.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_Name_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Name*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_Name" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Name">Name</h4>
  <div class="markdown level1 summary"><p>Gets the name of the <a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string Name { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>The name.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_ParameterSets_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.ParameterSets*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_ParameterSets" data-uid="SpiceSharp.Components.Common.SimulationWrapper.ParameterSets">ParameterSets</h4>
  <div class="markdown level1 summary"><p>Gets all the parameter sets of this instance.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual IEnumerable&lt;IParameterSet&gt; ParameterSets { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a>&gt;</td>
        <td><p>The parameter sets.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_Parent_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Parent*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_Parent" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Parent">Parent</h4>
  <div class="markdown level1 summary"><p>Gets the parent simulation.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected ISimulation Parent { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a></td>
        <td><p>The parent simulation.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_States_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.States*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_States" data-uid="SpiceSharp.Components.Common.SimulationWrapper.States">States</h4>
  <div class="markdown level1 summary"><p>Gets all the states that the class uses.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IEnumerable&lt;Type&gt; States { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<span class="xref">System.Type</span>&gt;</td>
        <td><p>The states.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_Status_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Status*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_Status" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Status">Status</h4>
  <div class="markdown level1 summary"><p>Gets the current status of the <a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public SimulationStatus Status { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.SimulationStatus.html">SimulationStatus</a></td>
        <td><p>The current status.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_Clone_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Clone*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_Clone" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Clone">Clone()</h4>
  <div class="markdown level1 summary"><p>Clones the instance.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ICloneable Clone()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></td>
        <td><p>The cloned instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_CopyFrom_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.CopyFrom*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_CopyFrom_SpiceSharp_ICloneable_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.CopyFrom(SpiceSharp.ICloneable)">CopyFrom(ICloneable)</h4>
  <div class="markdown level1 summary"><p>Copies the contents of one interface to this one.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void CopyFrom(ICloneable cloneable)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></td>
        <td><span class="parametername">cloneable</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">source</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.ArgumentException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">source</code> does not have the same type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_CreateParameterSetter_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.CreateParameterSetter*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_CreateParameterSetter__1_System_String_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.CreateParameterSetter``1(System.String)">CreateParameterSetter&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Creates an action that can set the parameter of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual Action&lt;P&gt; CreateParameterSetter&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Action</span>&lt;P&gt;</td>
        <td><p>An action that can set the parameter value, or <code>null</code> if the parameter could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_CreatePropertyGetter_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.CreatePropertyGetter*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_CreatePropertyGetter__1_System_String_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.CreatePropertyGetter``1(System.String)">CreatePropertyGetter&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Creates a function that can get the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual Func&lt;P&gt; CreatePropertyGetter&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Func</span>&lt;P&gt;</td>
        <td><p>A function that can get the property value, or <code>null</code> if the property could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_GetParameterSet_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.GetParameterSet*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_GetParameterSet__1" data-uid="SpiceSharp.Components.Common.SimulationWrapper.GetParameterSet``1">GetParameterSet&lt;P&gt;()</h4>
  <div class="markdown level1 summary"><p>Gets the parameter set of the specified type.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual P GetParameterSet&lt;P&gt;()
    where P : IParameterSet</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">P</span></td>
        <td><p>The parameter set.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter set type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.TypeNotFoundException.html">TypeNotFoundException</a></td>
        <td><p>Thrown if the parameter set could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_GetParentState_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.GetParentState*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_GetParentState__1" data-uid="SpiceSharp.Components.Common.SimulationWrapper.GetParentState``1">GetParentState&lt;S&gt;()</h4>
  <div class="markdown level1 summary"><p>Gets the state of the parent simulation of the specified type, bypassing any local states.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public S GetParentState&lt;S&gt;()
    where S : ISimulationState</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">S</span></td>
        <td><p>The state.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">S</span></td>
        <td><p>The simulation state type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentException</span></td>
        <td><p>Thrown if the simulation state is not defined.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_GetProperty_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.GetProperty*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_GetProperty__1_System_String_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.GetProperty``1(System.String)">GetProperty&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Gets the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual P GetProperty&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">P</span></td>
        <td><p>The value of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Diagnostics.ParameterNotFoundException.html">ParameterNotFoundException</a></td>
        <td><p>Thrown if a parameter by the specified name could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_GetState_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.GetState*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_GetState__1" data-uid="SpiceSharp.Components.Common.SimulationWrapper.GetState``1">GetState&lt;S&gt;()</h4>
  <div class="markdown level1 summary"><p>Gets the state of the specified type.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual S GetState&lt;S&gt;()
    where S : ISimulationState</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">S</span></td>
        <td><p>The type, or <code>null</code> if the state isn&apos;t used.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">S</span></td>
        <td><p>The simulation state type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.TypeNotFoundException.html">TypeNotFoundException</a></td>
        <td><p>Thrown if the simulation state is not defined on this instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_Rerun_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Rerun*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_Rerun" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Rerun">Rerun()</h4>
  <div class="markdown level1 summary"><p>Reruns the <a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a> with the previous behaviors.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Rerun()</code></pre>
  </div>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_Run_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Run*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_Run_SpiceSharp_Entities_IEntityCollection_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.Run(SpiceSharp.Entities.IEntityCollection)">Run(IEntityCollection)</h4>
  <div class="markdown level1 summary"><p>Runs the <a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a> on the specified <a class="xref" href="SpiceSharp.Entities.IEntityCollection.html">IEntityCollection</a>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Run(IEntityCollection entities)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Entities.IEntityCollection.html">IEntityCollection</a></td>
        <td><span class="parametername">entities</span></td>
        <td><p>The entities.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="SpiceSharp_Components_Common_SimulationWrapper_Run_SpiceSharp_Entities_IEntityCollection__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>The behaviors are stored in the specified <a class="xref" href="SpiceSharp.Components.Common.SimulationWrapper.html#SpiceSharp_Components_Common_SimulationWrapper_EntityBehaviors">EntityBehaviors</a> of the <a class="xref" href="SpiceSharp.Components.Common.SimulationWrapper.html">SimulationWrapper</a>.
This can be a local collection, allowing you to keep a part of the behaviors separate.</p>
</div>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_SetParameter_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.SetParameter*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_SetParameter__1_System_String___0_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.SetParameter``1(System.String,``0)">SetParameter&lt;P&gt;(String, P)</h4>
  <div class="markdown level1 summary"><p>Sets a parameter in the parameter set of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void SetParameter&lt;P&gt;(string name, P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value that the parameter should be set to.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Diagnostics.ParameterNotFoundException.html">ParameterNotFoundException</a></td>
        <td><p>Thrown if a parameter by the specified name could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_TryGetParameterSet_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TryGetParameterSet*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_TryGetParameterSet__1___0__" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TryGetParameterSet``1(``0@)">TryGetParameterSet&lt;P&gt;(out P)</h4>
  <div class="markdown level1 summary"><p>Tries to get the parameter set of the specified type.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual bool TryGetParameterSet&lt;P&gt;(out P value)
    where P : IParameterSet</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The parameter set.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the parameter set was found; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter set type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_TryGetParentState_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TryGetParentState*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_TryGetParentState__1___0__" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TryGetParentState``1(``0@)">TryGetParentState&lt;S&gt;(out S)</h4>
  <div class="markdown level1 summary"><p>Tries the state of the get parent simulatio nof the specified type, bypassing any local states.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool TryGetParentState&lt;S&gt;(out S state)
    where S : ISimulationState</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">S</span></td>
        <td><span class="parametername">state</span></td>
        <td><p>The simulation state.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the simulation state exists; otherwise <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">S</span></td>
        <td><p>The simulation state type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_TryGetProperty_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TryGetProperty*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_TryGetProperty__1_System_String___0__" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TryGetProperty``1(System.String,``0@)">TryGetProperty&lt;P&gt;(String, out P)</h4>
  <div class="markdown level1 summary"><p>Tries to get the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual bool TryGetProperty&lt;P&gt;(string name, out P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value of the property if the property was found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the property was found and returned; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_TryGetState_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TryGetState*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_TryGetState__1___0__" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TryGetState``1(``0@)">TryGetState&lt;S&gt;(out S)</h4>
  <div class="markdown level1 summary"><p>Tries to get a state of the specified type.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual bool TryGetState&lt;S&gt;(out S state)
    where S : ISimulationState</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">S</span></td>
        <td><span class="parametername">state</span></td>
        <td><p>The state.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the state exists; otherwise <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">S</span></td>
        <td><p>The simulation state type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_TrySetParameter_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TrySetParameter*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_TrySetParameter__1_System_String___0_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.TrySetParameter``1(System.String,``0)">TrySetParameter&lt;P&gt;(String, P)</h4>
  <div class="markdown level1 summary"><p>Tries to set a parameter in the parameter set of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual bool TrySetParameter&lt;P&gt;(string name, P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value that the parameter should be set to.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if a parameter was found and set succesfully; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_UsesBehaviors_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.UsesBehaviors*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_UsesBehaviors__1" data-uid="SpiceSharp.Components.Common.SimulationWrapper.UsesBehaviors``1">UsesBehaviors&lt;B&gt;()</h4>
  <div class="markdown level1 summary"><p>Checks if the class uses the specified behaviors.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool UsesBehaviors&lt;B&gt;()
    where B : IBehavior</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the class uses the behavior; otherwise <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">B</span></td>
        <td><p>The behavior type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Components_Common_SimulationWrapper_UsesState_" data-uid="SpiceSharp.Components.Common.SimulationWrapper.UsesState*"></a>
  <h4 id="SpiceSharp_Components_Common_SimulationWrapper_UsesState__1" data-uid="SpiceSharp.Components.Common.SimulationWrapper.UsesState``1">UsesState&lt;S&gt;()</h4>
  <div class="markdown level1 summary"><p>Checks if the class uses the specified state.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool UsesState&lt;S&gt;()
    where S : ISimulationState</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the class uses the state; otherwise <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">S</span></td>
        <td><p>The simulation state type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.IStateful.html">IStateful</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.IBehavioral.html">IBehavioral</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.ParameterSets.IParameterSetCollection.html">IParameterSetCollection</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a>
  </div>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="SpiceSharp.Utility.html#SpiceSharp_Utility_ThrowIfNull__1___0_System_String_">Utility.ThrowIfNull&lt;T&gt;(T, String)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_Parameters_SpiceSharp_ParameterSets_IParameterSetCollection_">Documentation.Parameters(IParameterSetCollection)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_Parameters_SpiceSharp_ParameterSets_IParameterSet_">Documentation.Parameters(IParameterSet)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_ParameterValues__1_SpiceSharp_ParameterSets_IParameterSetCollection_System_Boolean_">Documentation.ParameterValues&lt;T&gt;(IParameterSetCollection, Boolean)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_ParameterValues__1_SpiceSharp_ParameterSets_IParameterSet_System_Boolean_">Documentation.ParameterValues&lt;T&gt;(IParameterSet, Boolean)</a>
  </div>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="SpiceSharp.Simulations.ISimulation.html">ISimulation</a></div>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
